package com.nuorui.common.core.domain;


import com.nuorui.common.core.enums.UserTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 类描述
 *
 * @author: Fred
 * @email 453086@qq.com
 * @create: 2025-06-06 15:07
 */
@Data
@ApiModel(description = "登录用户信息")
public class LoginUser implements RequestUser, Serializable {

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "登录账号")
    private String loginName;

    @ApiModelProperty(value = "员工名称")
    private String actualName;

    @ApiModelProperty(value = "头像URL")
    private String avatar;

    @ApiModelProperty(value = "性别（0=未知，1=男，2=女）")
    private Integer gender;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "邮箱地址")
    private String email;

    @ApiModelProperty(value = "用户类型（见 UserTypeEnum 枚举）")
    private UserTypeEnum userType;

    @ApiModelProperty(value = "部门ID")
    private Long departmentId;

    @ApiModelProperty(value = "部门名称")
    private String departmentName;

    @ApiModelProperty(value = "职务级别ID")
    private Long positionId;

    @ApiModelProperty(value = "是否禁用", example = "false")
    private Boolean isDisabled;

    @ApiModelProperty(value = "是否为超级管理员", example = "false")
    private Boolean isAdministrator;

    @ApiModelProperty(value = "备注信息")
    private String remark;

    @ApiModelProperty(value = "请求IP地址")
    private String ip;

    @ApiModelProperty(value = "请求User-Agent")
    private String userAgent;

    @Override
    public Long getUserId() {
        return userId;
    }

    @Override
    public String getUserName() {
        return loginName;
    }
}
